﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using redis测试;

namespace Data.Sql　//使用SQL实现查询
{
    public class PersonRepository : RepositoryBase, IRepository<Res_Item>
    {
        #region IRepository<Res_Item> 成员

        public IQueryable<Res_Item> GetModel()
        {
            return db.Res_Item.Select(i => new Res_Item_Ext
            {
                ID = i.ID,
                Name = i.Name,
                PackageTime = i.PackageTime,
            });
        }

        #endregion
    }
}